package com.tjshop.android.model;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class TuWenDetail extends BaseObject{
	private int tm;//"tm":0,
    
	private List<String> tmImags = new ArrayList<String>();

    private String tjimgs;//"tjimgs":"/images/upload/Image/玉屏山板蓝根颗粒2.jpg"

	public int getTm() {
		return tm;
	}

	public void setTm(int tm) {
		this.tm = tm;
	}

	public List<String> getTmImags() {
		return tmImags;
	}

	public void setTmImags(List<String> tmImags) {
		this.tmImags = tmImags;
	}

	public String getTjimgs() {
		return tjimgs;
	}

	public void setTjimgs(String tjimgs) {
		this.tjimgs = tjimgs;
	}

	@Override
	public void parse(JSONObject data) {
		setTm(getInt(data, "tm"));
		setTjimgs(getString(data, "tjimgs"));
		
		JSONArray array;
		
		try {
			array = data.getJSONArray("tmimgs");
			for(int i = 0;i<array.length();i++){
				
			}
		} catch (JSONException e) {
			e.printStackTrace();
		}
		
	}

	@Override
	public void parse(JSONArray data) {
		// TODO Auto-generated method stub
		
	}
}
